<template>
<div>
	<Header :testTxt="testTxt">
  <template v-slot:mainTitle="slotProps">
  	<h3>{{title}}</h3>
  	{{slotProps.upperTxt}}
  </template>
  <template v-slot:subTitle>
  	<h6>这里是父组件</h6>
  </template>
  </Header>
</div>
</template>

<script>
	import Header from "@/components/Header.vue";
	export default{
		components:{
			Header
		},
		data(){
		return{
			title:"what about you",
			testTxt:"How aRe YoU"
		}
	}
	}
	
</script>

<style>
</style>